import request from "@/utils/request";

// 查询标签列表
export function listTag(query) {
  return request({
    url: "/tag/list",
    method: "get",
    params: query,
  });
}

// 查询标签列表
export function listTagByPage(query) {
  return request({
    url: "/tag/list/page",
    method: "get",
    params: query,
  });
}

// 查询标签详细
export function getTag(query) {
  return request({
    url: "/tag/get",
    method: "get",
    params: query,
  });
}

// 新增标签
export function addTag(data) {
  return request({
    url: "/tag/add",
    method: "post",
    data: data,
  });
}

// 修改参数配置
export function updateTag(data) {
  return request({
    url: "/tag/update",
    method: "post",
    data: data,
  });
}

// 删除参数配置
export function delTag(tagId) {
  return request({
    url: "/tag/" + tagId,
    method: "delete",
  });
}
